<style type="text/Css">
<!--
table
{
	width:	100%;
	margin: 0px 50px;
}
th
{
}
td
{
}
td.col1
{
}
.adminlist {
	width:	100%;
	margin: 0px 50px;	
}
.adminlist th{
	border-top:1px solid #000;	
	border-left:1px solid #000;	
	border-right:1px solid #000;	
	padding: 5px;
}
.adminlist td{
	border-top:1px solid #000;	
	border-left:1px solid #000;	
	border-right:1px solid #000;	
	padding: 5px;	
}
td.lastcol{
	border-bottom:1px solid #000;		
}
-->
</style>
<table>
	<col style="width: 45%">
	<col style="width: 10%">
	<col style="width: 45%">
	<tr>
		<td><img src="../../uploads/logo/20130821010849.png" width="280" height="40"></td>
		<td></td>
		<td><span style="font-weight: bold; font-size: 30pt; color: #999; ">TAX INVOICE</span></td>
	</tr>
	
</table>
<br />
<br />
<table>
	<col style="width: 50%">
	<col style="width: 50%">
	<tr>
		<td></td>
		<td>
			<span style="font-weight: bold; font-size: 14pt; color: #000; ">DATE {date}</span><br/><br/>
			<span style="font-weight: bold; font-size: 14pt; color: #000; ">INVOICE {invoice_number}</span>
		</td>
	</tr>
	
</table>
<br />
<br />
<table>
	<col style="width: 100%">
	<tr>
		<td align="left">
			{invoice_address}
		</td>
	</tr>
	
</table>
<br />
<br />
<table>
	<col style="width: 50%">
	<col style="width: 50%">
	<tr>
		<td>
			{invoice_to}
		</td>
		<td>
			{invoice_for}
		</td>
	</tr>
	
</table>
<br />
<br />
<table class="adminlist" cellpadding="0" cellspacing="0">
	 
    <thead>
        <tr>
            <th width="42"  align="center">No</th>
            <th width="250">Item name</th>
            <th width="88"  align="center">Quantity</th>
            <th width="82"  align="right">Price</th>
            <th width="82"  align="right">Total</th>
        </tr>
    </thead>
    <tbody>
       {item_list}
        <tr>
            <td colspan="4" align="right">Subtotal:</td>
            <td align="right">${subtotal}</td>
        </tr>
        <tr>
            <td colspan="4" align="right">Tax (GST):</td>
            <td align="right">${tax}</td>
        </tr>
        <tr>
            <td colspan="4" align="right" class="lastcol"><strong>Grand Total:</strong></td>
            <td width="" align="right" class="lastcol">${total}</td>
        </tr>
    </tbody>
</table>